package com.zui.entity.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zui.entity.BaseAssignedIdEntity;





@Entity
@Table(name="uom")
public class Uom extends BaseAssignedIdEntity{
	private static final long serialVersionUID = 1L;
	public static final String UOM_CURRENCY_CNY = "CNY";

	public Uom(){}
	public Uom(String id) {
		super();
		this.id = id;
	}
	private String name;
	private String nameEn;
	private UomType uomType;
	private String abbreviation;
	
	@Column(length=50)
	public String getName() {return name;}
	@ManyToOne
	@JoinColumn(name="uomTypeId")
	public UomType getUomType() {return uomType;}
	@Column(length=20)
	public String getAbbreviation() {return abbreviation;}
	@Column(length=50)
	public String getNameEn() {	return nameEn;}
	
	
	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setUomType(UomType uomType) {
		this.uomType = uomType;
	}
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}
	
	
	
}
